import React, { useContext } from 'react'
import { ColorContext } from './Color'

const ShowText = () => {
    const { color } = useContext(ColorContext)
    return (
        <div>
            <p style={{ color: color }}>当前文本颜色是{color}</p>
        </div>
    )
}

export default ShowText
